package com.ssy.lingxi.contract.model.vo.manage.request;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 更新合同文本VO
 * @author 伍将
 * @date 2021/2/24
 * @version 2.0.0
 */
public class ContractTextUpdateVO implements Serializable {
    private static final long serialVersionUID = -7631560599923178111L;

    /**
     * 合同文本id（为0代表新增）
     */
    @NotNull(message = "合同文本id不能为空")
    private Long id;

    /**
     * 合同模板id
     */
    @NotNull(message = "合同模板id不能为空")
    private Long templateId;

    /**
     * 是否使用电子合同：0-否，1-是
     */
    @NotNull(message = "是否使用电子合同不能为空")
    private Integer isUseElectronicContract;

    /**
     * 合同名称
     */
    @NotBlank(message = "合同名称不能为空")
    private String contractName;

    /**
     * 合同地址
     */
    @NotBlank(message = "合同地址不能为空")
    private String contractUrl;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Long templateId) {
        this.templateId = templateId;
    }

    public Integer getIsUseElectronicContract() {
        return isUseElectronicContract;
    }

    public void setIsUseElectronicContract(Integer isUseElectronicContract) {
        this.isUseElectronicContract = isUseElectronicContract;
    }

    public String getContractName() {
        return contractName;
    }

    public void setContractName(String contractName) {
        this.contractName = contractName;
    }

    public String getContractUrl() {
        return contractUrl;
    }

    public void setContractUrl(String contractUrl) {
        this.contractUrl = contractUrl;
    }
}
